﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BO;

namespace Site_CamaraTibau
{
    public partial class MostrarFoto : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            Foto foto = FotoBO.Selecionar(Convert.ToInt32(Request.QueryString["idFoto"]));

            Image1.ImageUrl = "~/fotos/noticia/" + foto.noticiaID + "/" + foto.urlFoto;
            Image1.DataBind();
        }
    }
}